﻿<UserControl x:Class="WGM_Silverlight.Controls.CategoryButton"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Loaded="UserControl_Loaded"
    >
    <UserControl.Resources>
        <Storyboard x:Name="_animEnter">
            <DoubleAnimation To="1" FillBehavior="HoldEnd" Storyboard.TargetName="_brushLight" Storyboard.TargetProperty="Opacity"
                                     Duration="0:0:0.1"/>
        </Storyboard>
        <Storyboard x:Name="_animLeave">
            <DoubleAnimation To="0" FillBehavior="HoldEnd" Storyboard.TargetName="_brushLight" Storyboard.TargetProperty="Opacity"
                                     Duration="0:0:0.4"/>
        </Storyboard>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="Transparent" MouseEnter="LayoutRoot_MouseEnter" MouseLeave="LayoutRoot_MouseLeave" Cursor="Hand">
        <Border x:Name="_background" CornerRadius="10" IsHitTestVisible="False"/>
        <Border  IsHitTestVisible="False" CornerRadius="10">
            <Border.Background>
                <RadialGradientBrush RadiusX="0.7253" RadiusY="1" GradientOrigin="0.5,1" Center="0.5,1" x:Name="_brushLight" Opacity="0">
                    <GradientStop Offset="0" Color="#fFffffff"/>
                    <GradientStop Offset="0.6" Color="#ffD8935F" x:Name="transitionColor"/>
                    <GradientStop Offset="0.8" Color="#3fD8935F" x:Name="transitionSubColor"/>
                </RadialGradientBrush>
            </Border.Background>
            <TextBlock x:Name="_itemText" Text="Item Text" Margin="4" HorizontalAlignment="Center" VerticalAlignment="Center"  />
        </Border>
    </Grid>
</UserControl>
